package alkaid.eis.sys.core;

import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.Data;
import lombok.EqualsAndHashCode.Exclude;

/**
 * 基础数据传输对象
 *  
 * @author Lucky Yang
 * @since 0.0.1
 */
@Data
public abstract class AbstractBaseDto {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Exclude
    private Integer version;

    @Exclude
    private String createBy;

    @Exclude
    private String updateBy;

    @Exclude
    private Date createTime;

    @Exclude
    private Date updateTime;
    
}
